﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public class Employee
    {
        //定义一个员工类，存放用户的工号、姓名和部门信息；
        //定义两个构造函数，一个是无参；
        //一个有参构造函数，对类的属性进行初始化。
        public int Id { get; set; }
        public String name { get; set; }
        public String part { get; set; }
        public Employee(int Id, String name, String part)
        {
            this.Id = Id;
            this.name = name;
            this.part = part;
        }
        public Employee()
        {
            //默认无参构造函数
        }
        static void Main(string[] args) 
        {
            //Employee e = new Employee();
            //e.Id = 1;
            //e.name = "name1";
            //e.part = "part1";
            //e.ss();
            Class1 eee = new Class1();
            //eee.yuan(3.14);

            //eee.yuan(2, 2);

            SumUtils sumUtils = new SumUtils();
            sumUtils.Img(1, 1);
            Console.ReadKey(true);

            sumUtils.Img(1.1, 1.1);
            Console.ReadKey(true);

            sumUtils.Img("a", "b");
            Console.ReadKey(true);

            sumUtils.Img(100);
            Console.ReadKey(true);

            Console.ReadKey();
        }
        public void ss()
        {
            Console.WriteLine("员工的工号{0}，名字{1}，部门{2}",this.Id,this.name,this.part);
        }
    }
}
